﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucProductDetail.ascx.cs"
    Inherits="TTMarketing.UserControl.SanPham.ucProductDetail" %>
<asp:ObjectDataSource ID="odsProductDetail" runat="server" SelectMethod="getById"
    TypeName="TTBusiness.ClassDB.clsBSProduct">
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<div class="componentheading">
    Chi tiết sản phẩm
</div>
<asp:DataList ID="DataList1" runat="server" DataSourceID="odsProductDetail" HorizontalAlign="Center"
    Width="98%">
    <ItemTemplate>
        <div id="component-contact">
            <div class="title" style="margin-bottom: 20px; margin-top: 10px;">
                <%#Eval("Name") %></div>
            <div style="margin-bottom: 20px;">
                <center>
                    <img src='Image/Upload/<%#Eval("Image") %>' alt='<%#Eval("Name")%>' width="400px" /></center>
            </div>
            <div style="color: #0000ff; font-weight: bold; margin-bottom: 20px;">
                Giá :<span style="color: Red;"><strong>
                    <%# Convert.ToInt32(Eval("Price").ToString()) > 0 ? Eval("Price", "{0:N0} VNĐ") : "Liên hệ" %></strong></span><br />
                <%#Eval("Summary") %></div>
            <div style="text-align: justify;">
                <%#Eval("Detail") %></div>
        </div>
    </ItemTemplate>
</asp:DataList>
